using System;
using System.Data;
using System.Configuration;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;


namespace ActivUFRJ.Classes.Geral
{
    public class AreaInteresse
    {
        /// <summary>
        /// carrega nova area de interesse
        /// </summary>
        public AreaInteresse()
        {

        }

        /// <summary>
        /// carrega a area de interesse a partir do ID
        /// </summary>
        public AreaInteresse(int idAreaInteresse)
        {
            this.ID = idAreaInteresse;

            DBAreaInteresse dbAreaInteresse = new DBAreaInteresse();
            dbAreaInteresse.CarregarAreaInteresse(this);
            dbAreaInteresse.Dispose();
        }

        private int id;
        private string descricao;
        private int idEspecializacao;

        public int ID
        {
            get { return id; }
            set { id = value; }
        }

        public string Descricao
        {
            get { return descricao; }
            set { descricao = value; }
        }

        public int IdEspecializacao
        {
            get { return idEspecializacao; }
            set { idEspecializacao = value; }
        }

        public static AreaInteresse[] GetListaAreaInteresse()
        {
            DBAreaInteresse dbAreaInteresse = new DBAreaInteresse();
            return dbAreaInteresse.GetListaAreasDeInteresse();
        }

        public static AreaInteresse[] GetListaAreaInteresse(int idUsuario)
        {
            DBAreaInteresse dbAreaInteresse = new DBAreaInteresse();
            return dbAreaInteresse.GetListaAreasDeInteresse(idUsuario);
        }
    }
}
